package com.eatme.web.sys.quartz.req;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class QuartzJobResp {

    String jobClassName;


    String group;

    Date nextFireTime;

    Date previousFireTime;


    String cronExpression;
    String description;

    String state;


    public QuartzJobResp(String jobClassName, String group, Date nextFireTime, Date previousFireTime, String cronExpression, String description, String state) {
        this.jobClassName = jobClassName;
        this.group = group;
        this.nextFireTime = nextFireTime;
        this.previousFireTime = previousFireTime;
        this.cronExpression = cronExpression;
        this.description = description;
        this.state = state;
    }

    public QuartzJobResp() {

    }

    public String getJobClassName() {
        return jobClassName;
    }

    public void setJobClassName(String jobClassName) {
        this.jobClassName = jobClassName;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }


    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getNextFireTime() {
        return nextFireTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public void setNextFireTime(Date nextFireTime) {
        this.nextFireTime = nextFireTime;
    }

    public Date getPreviousFireTime() {
        return previousFireTime;
    }

    public void setPreviousFireTime(Date previousFireTime) {
        this.previousFireTime = previousFireTime;
    }



    @Override
    public String toString() {
        return "QuartzJobResp{" +
                "jobClassName='" + jobClassName + '\'' +
                ", group='" + group + '\'' +
                ", nextFireTime=" + nextFireTime +
                ", previousFireTime=" + previousFireTime +
                ", cronExpression='" + cronExpression + '\'' +
                ", description='" + description + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
